<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<!-- <meta http-equiv="refresh" content="2" /> -->
	<title>sharelife</title>
	<!--[if lt IE 9]>
		<script src="<%=basePath %>js/ie9.js"></script>
	<![endif]-->
	<link rel="icon" href="<%=basePath %>images/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="<%=basePath %>images/favicon.ico" type="image/x-icon" />
	<script src="<%=basePath %>js/jquery-1.4.2.min.js"></script>
	<script type="text/javascript" src="<%=basePath %>js/jquery.cookie.js"></script>
	<script type="text/javascript" src="<%=basePath %>js/cookie.save.js"></script>
	<script src="<%=basePath %>js/sign-up.js"></script>
	<link rel="stylesheet" type="text/css" href="<%=basePath %>css/style.css" />
	<link rel="stylesheet" href="<%=basePath %>css/default/default.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="<%=basePath %>css/default.css" type="text/css" media="screen" />
</head>
<body>
	<div id="header">
		<div class="header-content">
		<h1 class="logo">
			<a href="<%=basePath %>">sharelife</a>
		</h1>
		<form action="pictureAction!findByKeyWord" class="search" method="post">
				<div class="search-group">
					<input type="text" name="keyWord" class="field style" value="用户名、图片类别"/>
					<input type="hidden" name="page" value="1"/>
					<input type="submit" title="Submit" value="" class="submit" />
				</div>
			</form>
		<div class="login">
			<c:if test="${sessionScope.loginUser == null}">
					<div class="sign-in">
						<a href="javascript:void(0);">登录</a><a href="<%=basePath %>jsp/signup.jsp">注册</a>
					</div>
					<div class="loginbox" style="display: none;">
					<span class="angle"></span>
					<a href="#" class="close">x</a>
					<form action="userAction!signin" class="login-form" method="post">
						<div class="input-group">
							<label for="username">用户名</label>
							<input type="text" name="user.userName" id="username" class="username" />
						</div>
						<div class="input-group">
							<label for="password">密码</label>
							<input type="password" name="user.password" id="password" class="password" />
						</div>
						<div class="input-group ">
							<input type="checkbox" name="checkbox" id="checkbox" class="checkbox"/>
							<small>记住我</small>
							<input type="submit" title="Login" value="登录" class="Login" />
						</div>
						<div class="login-info">
							<p>还没有登录账号？<a href="<%=basePath %>jsp/signup.jsp">立即注册</a></p>
						</div>
					</form>
				</div>
				</c:if>
				<c:if test="${sessionScope.loginUser != null}">
				</c:if>
				
		</div>
		</div>
	</div> <!-- header -->
	<div class="content">
		<div class="sliders">
			<div class="slider-wrapper theme-default">
	            <div id="slider" class="nivoSlider">
	            	<a href="<%=basePath %>">
	                <img src="<%=basePath %>images/big-image-1.jpg" alt="" title="#wen-zi-1"/>
	                </a>
	                <a href="<%=basePath %>">
	                	<img src="<%=basePath %>images/big-image-2.jpg" alt="" title="#wen-zi-2" />
	                </a>
	                <a href="<%=basePath %>">
	                <img src="<%=basePath %>images/big-image-3.jpg" alt="" data-transition="slideInLeft" title="#wen-zi-3"/>
	                </a>
	                <a href="<%=basePath %>">
	                <img src="<%=basePath %>images/big-image-4.jpg" alt="" title="#wen-zi-4" />
	                </a>
	            </div>
	            <div id="wen-zi-1" class="nivo-html-caption">
	                <strong>这是</strong>带有<a href="<%=basePath %>">超链接</a>的第一段文字.
	            </div>
	            <div id="wen-zi-2" class="nivo-html-caption">
	                <strong>这是</strong>带有<a href="<%=basePath %>">超链接</a>的第二段文字.
	            </div>
	            <div id="wen-zi-3" class="nivo-html-caption">
	                <strong>这是</strong>带有<a href="<%=basePath %>">超链接</a>的第三段文字.
	            </div>
	            <div id="wen-zi-4" class="nivo-html-caption">
	                <strong>这是</strong>带有<a href="<%=basePath %>">超链接</a>的第四段文字.
	            </div>
	            
        	</div>
		</div> <!-- sliders -->
		<div class="main">
			<h3>Join in the fun! See what's happening on photobucket today...</h3>

			<div class="iterms">
				<div class="iterm-container">
					<h4>popular</h4>
					<p class="iterms-desc">Browse & discover our popular categories and get inspiration on your next creative project!</p>
					<a href="#" class="more">See More!</a>
				</div>
				<a href="#" class="button prev">prev</a>
				<div class="iterms-container">
					<ul>
						<li>
							<a href="pictureAction!findByType?type=0" class="pointer">
								<img src="<%=basePath %>images/001.jpg" alt="black and white" />
							<div class="para">
								<h5>Black and White</h5>
								<p>inspiration on your next creative project!</p>
							</div>
							</a>
						</li>
						<li>
							<a href="pictureAction!findByType?type=1" class="pointer">
								<img src="<%=basePath %>images/002.jpg" alt="black and white" />
							<div class="para">
								<h5>Black and White</h5>
								<p>inspiration on your next creative project!</p>
							</div>
							</a>
						</li>
						<li>
							<a href="pictureAction!findByType?type=2" class="pointer">
								<img src="<%=basePath %>images/003.jpg" alt="black and white" />
							<div class="para">
								<h5>Black and White</h5>
								<p>inspiration on your next creative project!</p>
							</div>
							</a>
						</li>
						<li>
							<a href="pictureAction!findByType?type=3" class="pointer">
								<img src="<%=basePath %>images/004.jpg" alt="black and white" />
							<div class="para">
								<h5>Black and White</h5>
								<p>inspiration on your next creative project!</p>
							</div>
							</a>
						</li>
					</ul>
				</div>
				<a href="#" class="button next">next</a>
			</div> <!-- iterms -->
			<div class="iterms">
				<div class="iterm-container">
					<h4>popular</h4>
					<p class="iterms-desc">Browse & discover our popular categories and get inspiration on your next creative project!</p>
					<a href="#" class="more">See More!</a>
				</div>
				<a href="#" class="button prev">prev</a>
				<div class="iterms-container">
					<ul>
						<li>
							<a href="pictureAction!findByType?type=4" class="pointer">
								<img src="<%=basePath %>images/005.jpg" alt="black and white" />
							<div class="para">
								<h5>Black and White</h5>
								<p>inspiration on your next creative project!</p>
							</div>
							</a>
						</li>
						<li>
							<a href="pictureAction!findByType?type=3" class="pointer">
								<img src="<%=basePath %>images/006.jpg" alt="black and white" />
							<div class="para">
								<h5>Black and White</h5>
								<p>inspiration on your next creative project!</p>
							</div>
							</a>
						</li>
						<li>
							<a href="pictureAction!findByType?type=2" class="pointer">
								<img src="<%=basePath %>images/007.jpg" alt="black and white" />
							<div class="para">
								<h5>Black and White</h5>
								<p>inspiration on your next creative project!</p>
							</div>
							</a>
						</li>
						<li>
							<a href="pictureAction!findByType?type=1" class="pointer">
								<img src="<%=basePath %>images/008.jpg" alt="black and white" />
							<div class="para">
								<h5>Black and White</h5>
								<p>inspiration on your next creative project!</p>
							</div>
							</a>
						</li>
					</ul>
				</div>
				<a href="#" class="button next">next</a>
			</div> <!-- iterms -->
		</div>
	</div> <!-- contetn -->
	<div class="footer">
		<div class="footer-content">
			<p>Copyright 2012 Sharelife.  All rights reserved.  |   <a href="#">Privacy policy</a>  |   <a href="#">Terms of use</a>  |   <a href="#">Site map</a></p>
		</div>
	</div>
	<script type="text/javascript" src="<%=basePath %>js/jquery-frame.js"></script>
    <script type="text/javascript">
    $(window).load(function() {$('#slider').nivoSlider();});
    </script>
</body>
</html>